﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Sharp.DataTransferObject.CMS;
using Sharp.Platform.Mvc.Models;

namespace Sharp.WebBooter.Areas.CMS.Models
{
    public class SpecialReViewViewModel : BaseViewModel
    {
        public SpecialReViewViewModel()
        {
            ApproveHistories = new List<ApproveHistory4SpecialDTO>();
            VIUs = new List<VIUDTO>();
        }

        public Guid Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [Required, MaxLength(50), Display(Name = "标题", Prompt = "标题")]
        public string Title { get; set; }

        [Required, Display(Name = "内容"), DataType(DataType.MultilineText)]
        public string Content { get; set; }

        /// <summary>
        /// 是否审核
        /// </summary>
        [Display(Name = "是否通过")]
        public bool IsChecked { get; set; }

        public DateTime? CheckInTime { get; set; }


        public ICollection<ApproveHistory4SpecialDTO> ApproveHistories { get; set; }
        public IList<VIUDTO> VIUs { get; set; }

        public string EditorName { get; set; }

        /// <summary>
        /// 缩略图
        /// </summary>
        public string Thumbnail { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string CoverPictrue { get; set; }
    }
}